<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.Date" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles-extras" prefix="tilesx"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<c:set var="now" value="<%= System.currentTimeMillis() %>" />
	<title>分润管理系统</title>
	<link href="resources/images/favicon.ico" rel="shortcut icon" />
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=8;chrome=1">
	<tilesx:useAttribute id="styles" name="styles" classname="java.util.List" ignore="true" />
	<c:forEach var="style" items="${styles}">
	<link rel="stylesheet" href="<c:url value="/resources/${style}" />" type="text/css" media="all" />
	</c:forEach>	
	<link rel="stylesheet" href="<c:url value="/resources/css/style.css" />" type="text/css"/>	
	
	
	
	<script type="text/javascript" src="<c:url value="/resources/js/common.js" />?<c:out value="${now}" />"></script>	
	
	
	<tilesx:useAttribute id="scripts" name="scripts" classname="java.util.List" ignore="true"/>
	<c:forEach var="script" items="${scripts}">
	<script type="text/javascript" src="<c:url value="/resources/${script}" />?<c:out value="${now}" />"></script>
	</c:forEach>	
    <script type="text/javascript">
		$(document).ready(function(){
			var time = $.trim($("#dateTime").val());
			var timeList = time.split("-");
			var dateTime = new Date(timeList[0],parseInt(timeList[1])-1,timeList[2],timeList[3],timeList[4],timeList[5]).getTime();			
			$("body").frlayout({minWidth:900,footerId:"footer",dateTime:dateTime});
		});
	</script>
</head>
<body>
	<input type="hidden" id="ygzwhidden" value="${ygzw}">	
	<input type="hidden" id="dateTime" value="<%=new SimpleDateFormat("yyyy-MM-dd-HH-mm-ss").format(new Date().getTime())%>"/> 	
	<div id="gHeader" class="fr-header">
	<tiles:insertAttribute name="header"  defaultValue="" />
	</div>
	<div id="gBody" class="fr-container">       
		<tiles:insertAttribute name="body" defaultValue="" />
	</div>
	<div id="gFooter" class="fr-footer">
	<tiles:insertAttribute name="footer"  defaultValue="" />
	</div>
	
</body>
</html>